<template>
  <div></div>
</template>

<script>
import HectoPay from '@/utils/SettlePG_v1.2.js'
export default {
  name: 'HectoPay',
  data () {
    return {
    }
  },
  created () {
    this.getHectopay()
  },
  methods: {
    getHectopay () {
      const data = {
        env: 'https://tbnpg.settlebank.co.kr',
        mchtId: 'blockET1',
        method: 'card',
        trdDt: '20230511',
        trdTm: '180244',
        mchtTrdNo: '230511090238855043014',
        mchtName: '씨페이 파이낸셜',
        mchtEName: 'Cpay Financial',
        pmtPrdtNm: 'pen',
        trdAmt: '31vjZNAHM6P58FQLrY2iRw==',
        mchtCustNm: 'pQjKmVhmO++XI9doNykwCA==',
        notiUrl: 'https://sandbox-api.cpay.ltd/openapi/v1/callback/hecto',
        nextUrl: 'https://cashier.cpay.ltd/succed',
        cancUrl: 'https://cashier.cpay.ltd/lose',
        mchtParam: '',
        email: 'pQjKmVhmO++XI9doNykwCA==',
        prdtTerm: '',
        mchtCustId: 'pQjKmVhmO++XI9doNykwCA==',
        taxTypeCd: '',
        taxAmt: 'pQjKmVhmO++XI9doNykwCA==',
        vatAmt: 'pQjKmVhmO++XI9doNykwCA==',
        taxFreeAmt: 'pQjKmVhmO++XI9doNykwCA==',
        svcAmt: 'pQjKmVhmO++XI9doNykwCA==',
        cardType: '3',
        chainUserId: '',
        cardGb: '',
        appScheme: '',
        custIp: '46.232.120.202',
        pktHash: '2222ab6f11844c9beaacd05bc74aa1ff9448b829630c692d915d49d1e23d36a3',
        ui: {
          type: 'iframe',
          width: '430',
          height: '660'
        }
      }
      HectoPay.SETTLE_PG.pay(data)
    }
  }
}
</script>

<style>
</style>
